﻿<UserControl x:Class="HOG.Controls.CreditsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"	
    xmlns:im="clr-namespace:Microsoft.Expression.Interactivity.Media;assembly=Microsoft.Expression.Interactions"
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Canvas x:Name="Credits" Height="600" Width="900">
            <Image Height="600" Width="900" Source="/HOG;Component/Images/Credits/1.png" Stretch="Fill"/>
            <Button x:Name="CloseForm" Height="59" Width="142" Content="OK" Canvas.Left="716" Canvas.Top="533" Style="{StaticResource ButtonHOGStyle}" Background="#FF323232" FontWeight="Bold" FontFamily="Arial Black" FontSize="32" RenderTransformOrigin="0.5,0.5">
                <Button.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.65" ScaleY="0.65"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Button.RenderTransform>
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_button_click.mp3" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
        </Canvas>
    </Grid>
</UserControl>
